package com.bonc.ioc.service.impl;

import com.bonc.ioc.dao.FileUploadHistoryDao;
import com.bonc.ioc.model.FileUpload;
import com.bonc.ioc.service.FileUploadHistoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author wxf
 * @Date 2021/4/19
 **/

@Service
public class FileUploadHistoryServiceImpl implements FileUploadHistoryService {

    @Resource
    private FileUploadHistoryDao fileUploadHistoryDao;

    @Override
    public void insertFileHistory(FileUpload fileUpload) {
        fileUploadHistoryDao.insertFileHistory(fileUpload);
    }

    @Override
    public String selectFileOldName(String fileNewName) {
        return fileUploadHistoryDao.selectFileOldName(fileNewName);
    }
}
